﻿// --------------------------------------------------------------------------------------------------------------------
// <copyright file="IRepository.cs" company="DST Nexdox">
//   Copyright (c) DST Nexdox. All rights reserved.
// </copyright>
// <summary>
//   Defines the IRepository type.
// </summary>
// --------------------------------------------------------------------------------------------------------------------

namespace Repository
{
  using System;
  using System.Collections.Generic;
  using System.Linq;

  public interface IRepository<T> : IDisposable
  {
    IQueryable<T> Entities { get; }

    void Update(T entity);

    T Create(T entity);

    void Create(IEnumerable<T> entities);

    void Delete(T entity);

    void Delete(IEnumerable<T> entities);

    ////void Save();
  }
}
